import axios from '@/utils/request'

export function getChannels () {
  return axios({
    method: 'GET',
    url: '/v1_0/user/channels'
  })
}

export function getAllChannels () {
  return axios({
    method: 'GET',
    url: '/v1_0/channels'
  })
}

export function addChannel (channels) {
  return axios({
    method: 'patch',
    url: '/v1_0/user/channels',
    data: {
      channels
    }
  })
}

export function removeChannel (channels) {
  return axios({
    method: 'delete',
    url: '/v1_0/user/channels',
    data: {
      channels
    }
  })
}
